package com.adprof.demo.natives.viewholders;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView;

import com.adprof.demo.android.R;

/**
 * 视频内容ViewHolder - 用于展示视频内容
 * 同时支持RecyclerView和ListView
 */
public class VideoViewHolder extends RecyclerView.ViewHolder {
    public ImageView videoThumbnail;
    public TextView playButton, durationText;
    public TextView channelAvatar, channelName, viewCount, subscribeBtn;
    public TextView videoTitle, videoDesc;
    public TextView likeCount, commentCount, shareBtn;

    public VideoViewHolder(View itemView) {
        super(itemView);
        videoThumbnail = itemView.findViewById(R.id.video_thumbnail);
        playButton = itemView.findViewById(R.id.play_button);
        durationText = itemView.findViewById(R.id.duration_text);
        channelAvatar = itemView.findViewById(R.id.channel_avatar);
        channelName = itemView.findViewById(R.id.channel_name);
        viewCount = itemView.findViewById(R.id.view_count);
        subscribeBtn = itemView.findViewById(R.id.subscribe_btn);
        videoTitle = itemView.findViewById(R.id.video_title);
        videoDesc = itemView.findViewById(R.id.video_desc);
        likeCount = itemView.findViewById(R.id.like_count);
        commentCount = itemView.findViewById(R.id.comment_count);
        shareBtn = itemView.findViewById(R.id.share_btn);
    }
}
